//
//  UIButton+ImageTitleCentering.m
//  HuaRun2
//
//  Created by admin on 2017/9/22.
//  Copyright © 2017年 Sunny. All rights reserved.
//

#import "UIButton+ImageTitleCentering.h"

@implementation UIButton (ImageTitleCentering)

-(void) centerButtonAndImageWithSpacing:(CGFloat)spacing {
    self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, spacing);
    self.titleEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, 0);
}

@end
